SET TEMPLATEDIR="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Template"
SET STSADM="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe"
SET GACUTIL="%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\bin\gacutil.exe"

SET FEATURENAME="LetsDoSomeVariations"
SET ASSEMBLYGACDIR="C:\WINDOWS\assembly\GAC_MSIL\LetsDoSomeVariations\1.0.0.0__14c1768fcd634d10"

echo Installing Assembly in GAC
%GACUTIL% /i %1 /f
echo Copy debug-symbols for Assembly in GAC
xcopy /e /y bin\debug\*.pdb %ASSEMBLYGACDIR%

echo Copying Template Files
xcopy /e /y TEMPLATE\* %TEMPLATEDIR%

echo Installing Feature
%STSADM% -o InstallFeature -name %FEATURENAME% -force

echo Restart IIS
iisreset
